package chp03;

import java.util.Scanner;

public class Test11 {

    public static void main(String[] args) {
        //登录问题
        // 用户名 admin
        // 密码 admin123
        Scanner input = new Scanner(System.in);
        System.out.print("请输入用户名:");
        String username = input.next();
        System.out.print("请输入密码:");
        String password = input.next();
        if(username.equals("admin") && password.equals("admin123")){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }
    }
}
